<?php
namespace app\index\controller;

use think\Controller;

class Yzm extends Controller{

	public function index()
	{
		return $this->fetch();
	}

	//验证码处理方法
	public function check()
	{
		$code = input('post.code');

		//判断验证码是否正确
		if(captcha_check($code)){
			echo "okokok";
		}else{
			echo "error";
		}
	}

}